import redis

from ssh_proxy_db.SSHForwarderUtil import instance_ssh_server

server2 = instance_ssh_server("192.168.0.37", 6379)
server2.start()
# r = redis.Redis(host='localhost', port=server.local_bind_port, decode_responses=True, db=2, password="m1i2m3a02")
r = redis.Redis(host='127.0.0.1', port=server2.local_bind_port, decode_responses=True, db=1)


# 根据array数组，获取用户信息
def test():
    r.set("test_2020-0721","test_2020-0721")
    print(r.get("test_2020-0721"))

test()
